// @ts-ignore
/* eslint-disable */
import { request } from '@umijs/max';
const apiPrefix = '/web';

/** 获取年图表 GET /statistic/poc-energy/v1/annual/graph */
export async function statisticPocEnergyV1ControllerAnnualGraphReport(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.statisticPocEnergyV1ControllerAnnualGraphReportParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultReportTable>(`${apiPrefix}/statistic/poc-energy/v1/annual/graph`, {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 获取年报表 GET /statistic/poc-energy/v1/annual/report */
export async function statisticPocEnergyV1ControllerAnnualReport(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.statisticPocEnergyV1ControllerAnnualReportParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultStatisticPocGridEnergyVOStatisticYearPocOnOffEnergy>(
    `${apiPrefix}/statistic/poc-energy/v1/annual/report`,
    {
      method: 'GET',
      params: {
        ...params,
      },
      ...(options || {}),
    },
  );
}

/** 获取日图表 GET /statistic/poc-energy/v1/daily/graph */
export async function statisticPocEnergyV1ControllerDailyGraphReport(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.statisticPocEnergyV1ControllerDailyGraphReportParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultReportTable>(`${apiPrefix}/statistic/poc-energy/v1/daily/graph`, {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 获取日报表 GET /statistic/poc-energy/v1/daily/report */
export async function statisticPocEnergyV1ControllerDailyReport(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.statisticPocEnergyV1ControllerDailyReportParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultStatisticPocGridEnergyVOStatisticDayPocOnOffEnergy>(
    `${apiPrefix}/statistic/poc-energy/v1/daily/report`,
    {
      method: 'GET',
      params: {
        ...params,
      },
      ...(options || {}),
    },
  );
}

/** 导出报表 GET /statistic/poc-energy/v1/export/${param0} */
export async function statisticPocEnergyV1ControllerExportReport(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.statisticPocEnergyV1ControllerExportReportParams,
  options?: { [key: string]: any },
) {
  const { unit: param0, ...queryParams } = params;
  return request<any>(`${apiPrefix}/statistic/poc-energy/v1/export/${param0}`, {
    method: 'GET',
    params: {
      ...queryParams,
    },
    ...(options || {}),
  });
}

/** 获取月图表 GET /statistic/poc-energy/v1/monthly/graph */
export async function statisticPocEnergyV1ControllerMonthlyGraphReport(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.statisticPocEnergyV1ControllerMonthlyGraphReportParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultReportTable>(`${apiPrefix}/statistic/poc-energy/v1/monthly/graph`, {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 获取月报表 GET /statistic/poc-energy/v1/monthly/report */
export async function statisticPocEnergyV1ControllerMonthlyReport(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.statisticPocEnergyV1ControllerMonthlyReportParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultStatisticPocGridEnergyVOStatisticMonthPocOnOffEnergy>(
    `${apiPrefix}/statistic/poc-energy/v1/monthly/report`,
    {
      method: 'GET',
      params: {
        ...params,
      },
      ...(options || {}),
    },
  );
}
